package com.test.apiService.system.base;


import com.test.apiService.system.core.ResultResp;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * Created by alan.luo on 2017/9/18.
 */
public interface IDefaultRestController<T> {

    ResultResp<Map<String, Object>> doGet(HttpServletRequest request, HttpServletResponse response);

    ResultResp<Map<String, Object>> doPost(T obj, HttpServletRequest request, HttpServletResponse response);

    ResultResp<Map<String, Object>> doPut(Integer id, T obj, HttpServletRequest request, HttpServletResponse response);

    ResultResp<Map<String, Object>> doDelete(Integer id, HttpServletRequest request, HttpServletResponse response);
}
